//
//  HeadlineNewsModel.m
//  WangYiNews
//
//  Created by lanou3g on 15/10/15.
//  Copyright (c) 2015年 zhengming. All rights reserved.
//

#import "HeadlineNewsModel.h"

@implementation HeadlineNewsModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"imgextra"]) {
        for (NSDictionary *dic in value) {
            NSString *values = dic[@"imgsrc"];
            [self.imageArray addObject:values];
        }
    }
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"imgsrc"]) {
        [self.imageArray addObject:value];
    }
}

- (NSMutableArray *)imageArray
{
    if (!_imageArray) {
        _imageArray = [NSMutableArray array];
    }
    return _imageArray;
}

@end
